Computer Configuration > Administrative Templates > Firefox
Both
HKLM\Software\Policies\Mozilla\Firefox
If this policy is enabled, Firefox will start downloads in a temporary directory and they will be automatically deleted when you close the browser. If this policy is disabled or not configured, Firefox will put downloads in the download folder and they will not be automatically deleted when you close the browser.